﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SCDutyShiftList.aspx.cs" Inherits="MTRC.ODMS.Web.SOM.CodeSetup.SCDutyShiftList" %>

<%@ Register Assembly="APJ.Web.UI.WebControls" Namespace="APJ.Web.UI.WebControls"
    TagPrefix="APJ" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxControlToolkit" %>
<%@ Register Src="~/UserControl/Menu/PageFoot.ascx" TagName="PageFoot" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/TabStrip.ascx" TagName="TabStrip" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/PageHead.ascx" TagName="PageHead" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/MainMenu.ascx" TagName="MainMenu" TagPrefix="WebStructure" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Operational Data Management System</title>
    <link href="<%=ResolveUrl("~/CSS/common.css")%>" rel="stylesheet" type="text/css" />
    <link href="../../CSS/common.css" rel="stylesheet" type="text/css" />

    <script language="javascript">
        function CancelEnter()
            {
 
                if(window.event.keyCode==13)
                {
                    return false;
                }
                else
                {
                    return true;
                }
            }
    
    </script>

    <link href="~/CSS/Menu.css" rel="stylesheet" type="text/css" />
</head>
<body onkeypress="return CancelEnter();">
    <form id="form1" runat="server">
        <AjaxControlToolkit:ToolkitScriptManager ID="ToolkitScriptManager" runat="server">
        </AjaxControlToolkit:ToolkitScriptManager>
        <table border="0" cellpadding="0" cellspacing="0" class="Page_Container">
            <tr>
                <td colspan="2" class="Page_Head">
                    <WebStructure:PageHead ID="PageHead" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="Page_Left">
                    <WebStructure:MainMenu ID="MainMenu" runat="server" AppPath="../../" CurrMenuID="M140915" />
                </td>
                <td class="Page_Right">
                    <table class="Page_Contents">
                        <tr>
                            <td class="TabStrip">   
                                <WebStructure:TabStrip ID="TabStrip" CurrMenuID="M140815" ParentMenuID="M140915" DMenuMode="CurrOnly"
                                    runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td class="Contents" style="height: 16px">
                                <!--**********context Begin *****************-->
                                
                                <fieldset style="clear:both; margin-bottom:5px;background-color: #eeeeee;">
                                    <table width="100%" border="0">
                                        <tr>
                                            <td>
                                                <asp:Label ID="lblShift" runat="server" Text="Shift"></asp:Label>
                                                <asp:TextBox ID="txtShift" runat="server" Width="110" MaxLength="10"></asp:TextBox>
                                                &nbsp;
                                                <asp:Label ID="lblDescription" runat="server" Text="Description"></asp:Label>
                                                <asp:TextBox ID="txtDescription" runat="server" Width="234px" MaxLength="40" ></asp:TextBox>
                                                <asp:Label ID="lblDisplay" runat="server"></asp:Label>
                                                <asp:CheckBox ID="chkVoid" runat="server" />
                                            </td>                                      
                                            <td align="right">
                                                <asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" />
                                                <asp:Button ID="btnAddNew" runat="server" Text="Add  new" OnClick="btnAddNew_Click" />
                                            </td>
                                        </tr>
                                    </table>
                                </fieldset>
                               

                                            <APJ:CommonGridView ID="grvData" runat="server" AutoGenerateColumns="False" OnNeedDataBind="grvData_NeedDataBind"
                                                 DataKeyNames="shiftID" AllowSorting="True"
                                                AscPic="~/Images/Common/arrow_up_green.png" BorderColor="black" CssClass="GridView"
                                                DescPic="~/Images/Common/arrow_down_green.png" PageLinkCount="7" AllowPaging="True" OnRowCommand="grvData_RowCommand">
                                                <EmptyDataRowStyle CssClass="GridView_Header" />
                                                <PagerSettings Position="Top" />
                                                <RowStyle CssClass="GridView_Row" />
                                                <HeaderStyle CssClass="GridView_Header" />
                                                <AlternatingRowStyle CssClass="GridView_AlternativeRow" />
                                                <Columns>
                                                    <asp:BoundField DataField="Code1" HeaderText="SOM_ShiftCode1" SortExpression="Code1" />
                                                    <asp:BoundField DataField="Code2" HeaderText="SOM_ShiftCode2" SortExpression="Code2" />
                                                    <asp:BoundField DataField="Code3" HeaderText="SOM_ShiftCode3" SortExpression="Code3" />
                                                    <asp:BoundField DataField="Description" HeaderText="COM_Description" SortExpression="Description" />
                                                    <asp:BoundField DataField="Order" HeaderText="SOM_ShiftOrder" SortExpression="Order" />
                                                    <asp:CheckBoxField DataField="FlagObsolete" HeaderText="SOM_Void" SortExpression="FlagObsolete" />
                                                    
                                                    <asp:TemplateField HeaderText="COM_Edit">
                                                        <itemtemplate>
                                            <asp:ImageButton id="Btn_edit" ToolTip=<%# this.GetLabel("COM_Edit") %> runat="server" CssClass="link" CommandName="Edit" CommandArgument='<%# Eval("ShiftID") %>' ImageUrl="../../Images/SOM/Edit.gif"></asp:ImageButton> 
                                            </itemtemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <EmptyDataTemplate>
                                                    <asp:Table ID="Table1" runat="server" CssClass="GridView_Header_EmptyData">
                                                        <asp:TableRow ID="TableRow1" runat="server">
                                                            <asp:TableCell ID="TableCell1" runat="server" Style="border-right: black 1px solid;"></asp:TableCell>
                                                            <asp:TableCell ID="TableCell2" runat="server" Style="border-right: black 1px solid;"></asp:TableCell>
                                                            <asp:TableCell ID="TableCell3" runat="server" Style="border-right: black 1px solid;"></asp:TableCell>
                                                            <asp:TableCell ID="TableCell4" runat="server" Style="border-right: black 1px solid;"></asp:TableCell>
                                                            <asp:TableCell ID="TableCell5" runat="server" Width="5px"></asp:TableCell>
                                                        </asp:TableRow>
                                                    </asp:Table>
                                                </EmptyDataTemplate>
                                            </APJ:CommonGridView>

                                <!--**********context End *****************-->
                            </td>
                        </tr>
                        <tr>
                            <td class="Page_Foot" style="height: 65px">
                                <WebStructure:PageFoot ID="PageFoot" runat="server" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>

